(function() {

var Verse = Class.extend({
	init: function() {
		this.list = []
	},
	getList: function(vcode, bcode, cnum) {
		this._loadList(vcode, bcode, cnum);
		return this.list;
	},
	_loadList: function(vcode, bcode, cnum) {
		var self = this;
		$.ajax({
			url: "/data/verses",
			async: false,
			data: {
				vcode: vcode,
				bcode: bcode,
				cnum: cnum
			},
			success: function(data) {
				var list = $.parseJSON(data);
				list.pop();	
				self.list = list;
			}
		});
	}
});
	
holybible.model.Verse = {
	instance: new Verse(),
	getInstance: function() {
		if (!this.instance) {
			this.instance = new Verse();
		}
		return this.instance;
	}
};


})();